# This is a sample Python script.

# Press Shift+F10 to execute it or replace it with your code.
# Press Double Shift to search everywhere for classes, files, tool windows, actions, and settings.

import asyncio
import job.quote as quote_job
def print_hi(name):
    # Use a breakpoint in the code line below to debug your script.
    print(f'Hi, {name}')  # Press Ctrl+F8 to toggle the breakpoint.
async def main():
    print_hi('start run crawl')
    quote_job.start_scheduler()
    # 保持事件循环运行
    while True:
        await asyncio.sleep(1)
# Press the green button in the gutter to run the script.
if __name__ == '__main__':
    # async def main():
    #     crawler = BaseCrawler()
    #     await crawler.run()
    # asyncio.run(main())
    asyncio.run(main())
# See PyCharm help at https://www.jetbrains.com/help/pycharm/

